(Query Replace): Make exp of query-replace more self-contained, and clarify.
authorRichard M. Stallman <rms@gnu.org>
Sat, 22 Dec 2007 20:21:00 +0000 (20:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 22 Dec 2007 20:21:00 +0000 (20:21 +0000)
man/search.texi

index 1a8a6372ba226c3e113b59e2f840521710f129ac..48af28fa44132e246af2e3a5ff0e82c092ef3ddb 100644 (file)
@@ -1152,13 +1152,12 @@ Replace some matches for @var{regexp} with @var{newstring}.
 @kindex M-%
 @findex query-replace
   If you want to change only some of the occurrences of @samp{foo} to
-@samp{bar}, not all of them, then you cannot use an ordinary
-@code{replace-string}.  Instead, use @kbd{M-%} (@code{query-replace}).
+@samp{bar}, not all of them, use @kbd{M-%} (@code{query-replace}).
 This command finds occurrences of @samp{foo} one by one, displays each
 occurrence and asks you whether to replace it.  Aside from querying,
-@code{query-replace} works just like @code{replace-string}.  It
-preserves case, like @code{replace-string}, provided
-@code{case-replace} is non-@code{nil}, as it normally is
+@code{query-replace} works just like @code{replace-string}
+(@pxref{Unconditional Replace}).  In particular, it preserves case
+provided @code{case-replace} is non-@code{nil}, as it normally is
 (@pxref{Replacement and Case}).  A numeric argument means consider
 only occurrences that are bounded by word-delimiter characters.